<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			@import url("https://fonts.googleapis.com/css?family=Lora:400,400i,700");
			body {
			  display: flex;
			  flex-direction: column;
			  height: 100vh;
			  justify-content: center;
			  align-items: center;
			  background-image: linear-gradient(rgba(16, 16, 16, 0.8), rgba(16, 16, 16, 0.8)), url(https://i.loli.net/2019/11/03/RtVq2wxQYySDb8L.jpg);
			  background-size: cover;
			}
			
			p {
			  margin: 0em 5em 4em 5em;
			}
			
			h1, p {
			  text-align: left;
			  line-height: 1.8;
			  font-family: Lora, serif;
			}
			
			.glowIn {
			  color: white;
			}
			.glowIn span {
			  animation: glow-in 0.8s both;
			}
			
			@keyframes glow-in {
			  from {
			    opacity: 0;
			  }
			  65% {
			    opacity: 1;
			    text-shadow: 0 0 25px white;
			  }
			  75% {
			    opacity: 1;
			  }
			  to {
			    opacity: 0.7;
			  }
			}
		</style>
	</head>
	<body>
		<h1 class="glowIn">今天想要告诉你：</h1>
		<p class="glowIn">
			1.好好生活 慢慢相遇 尊重失去
            2.所有事情只要你觉得值得就好
            3.双向的奔赴才有意义 互相挂念的见面才好 ​​​​
		</p>
	</body>
</html>
<script>
	"use strict";
	let glowInTexts = document.querySelectorAll(".glowIn");
	glowInTexts.forEach(glowInText => {
	    let letters = glowInText.textContent.split("");
	    glowInText.textContent = "";
	    letters.forEach((letter, i) => {
	        let span = document.createElement("span");
	        span.textContent = letter;
	        span.style.animationDelay = `${i * 0.05}s`;
	        glowInText.append(span);
	    });
	});

</script>